]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar-server: Remove an unnecessary check
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 7 Jul 2016 13:52:43 +0000 (15:52 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 7 Jul 2016 13:54:57 +0000 (15:54 +0200)
calendar_appointment_new() never returns %NULL, so no need to check
for it.

src/calendar-server/gnome-shell-calendar-server.c

index 10e00f3f041b85eaa606d392e842bf1aac407608..7874c40ec2f34f9d7538deb418d813bd0746d130 100644 (file)
@@ -692,9 +692,6 @@ app_load_events (App *app)
           CalendarAppointment *appointment;
 
           appointment = calendar_appointment_new (ical, cal, app->zone);
-          if (appointment == NULL)
-            continue;
-
           calendar_appointment_generate_occurrences (appointment,
                                                      ical,
                                                      cal,